<?php
namespace app\mobile\controller;

use app\model\Util; 
use app\model\Worker; 

class Myorderworkercheck extends Base
{
    public function Myorderworkercheck()
    {p
    global $_P, $_G;
    $baseinfo = $this->Isworker();
    $themeid = intval($_P['themeid']);
    $result = Worker::MyorderWorkerCheck($baseinfo['system'],$baseinfo['theme'],$baseinfo['config'],$baseinfo['myworker']);
    if ($result['error']==1) {
        die(Util::showError($result['msg']));
        return;
    }elseif ($result['tishi']==1) {
        return_msg('成功核销','','success') ;
    }else{
        return_msg($result['msg']);
    }
}
}